package com.acoffee.mapper;

import com.acoffee.pojo.User;
import org.apache.ibatis.annotations.Param;

/**
 * @author acoffee
 * @create 2021-10-30 11:38
 */
public interface UserMapper {
    User queryByUsername(String name);

    void addUser(User user);

    User findUserByCode(String code);

    void updateStatus(User user);

    User login(@Param("username") String username,@Param("password") String password);

    boolean modPwd(@Param("uid")int uid, @Param("newpwd") String newpwd);

    public void updateImage(@Param("img_path")String img_path, @Param("uid")int uid);
}
